package com.e.dianshang.service.impl;

import com.alibaba.fastjson.JSON;
import com.e.dianshang.mapper.AfterSellMapper;
import com.e.dianshang.pojo.AfterSell;
import com.e.dianshang.service.AfterSellService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service
public class AfterSellServiceImpl implements AfterSellService {

    @Resource
    AfterSellMapper afterSellMapper;

    @Override
    public Integer updateAfterSell(Map map) {
        AfterSell afterSell = JSON.parseObject(JSON.toJSONString(map), AfterSell.class);
        return afterSellMapper.insertSelective(afterSell);
    }

    @Override
    public Integer updatePayType(Map map) {
        return afterSellMapper.updatePayType(map);
    }

    @Override
    public Integer updatePayType1(Map map) {
        return afterSellMapper.updatePayType1(map);
    }
}